package com.tianji.learning.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "新增笔记")
public class NotesDto {
    @ApiModelProperty("笔记内容")
    @NotNull(message = "笔记内容不能为空")
    private String content;
    @ApiModelProperty("是否私密")
    @NotNull(message = "是否私密不能为空")
    private Boolean isPrivate;
    @ApiModelProperty("写笔记对应的视频时间")
    private Integer noteMoment;
    @ApiModelProperty("课程id")
    @NotNull(message = "课程id不能为空")
    private Long courseId;
    @ApiModelProperty("章id")
    private Long chapterId;
    @ApiModelProperty("节id")
    private Long sectionId;
}
